<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>search</title>
    <link rel="stylesheet" href="/static/plugins/bootstrap-5.1.3-dist/css/bootstrap.min.css">
    <!-- <script src="/static/js/jquery-3.7.1.min.js"></script> -->
    <script src="/static/plugins/bootstrap-5.1.3-dist/js/bootstrap.bundle.min.js"></script>

</head>
<body>
    <div style="width:50%;margin: 5% auto auto;">
        <form action="/search" class="was-validated">
          <div class="form-group">
            <label for="uname">Username:</label>
            <input type="text" class="form-control" id="uname" placeholder="Enter username" name="uname" required>
            <div class="valid-feedback">验证成功！</div>
            <div class="invalid-feedback">请输入用户名！</div>
          </div>
          <div class="form-group">
            <label for="pwd">Password:</label>
            <input type="password" class="form-control" id="pwd" placeholder="Enter password" name="pswd" required>
            <div class="valid-feedback">验证成功！</div>
            <div class="invalid-feedback">请输入密码！</div>
          </div>
          <div class="form-group form-check">
            <label class="form-check-label">
              <input class="form-check-input" type="checkbox" name="remember" required> 同意协议
              <div class="valid-feedback">验证成功！</div>
              <div class="invalid-feedback">同意协议才能提交。</div>
            </label>
          </div>
          <button type="submit" class="btn btn-primary">提交</button>
        </form>
    </div>

</body>
</html>